﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Web_datagrid : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            bind();
        }
    }
    protected void AspNetPager1_PageChanged(object sender, EventArgs e)
    {
        bind();
    }
    protected void bind()
    {
        PM.Code.Web.controlbind.BindGridViewPublicProc(GridView1, AspNetPager1, "Bus_Project", "id", "id,type,pname,sub2,pmanager,attached,builddate", "id asc", "1=1 and status=1", true);
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        PM.Code.Web.output.ControlToExcel(GridView1, "hello");
    }

    protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    {

    }
}
